<center><b>{% if $is_show ==1 %}内容查看{%else%}{%$act_title%}表单{%/if%}</b></center>
<table border=1>
<form action="index.php?c=info_guest&m={%$act%}&post=1" method=post name=frm>
		<tr>
		<td>中文名</td>
		<td><input type=text name="guest_name" size=30 value='{%$guest_name%}' {% if $is_show ==1 %} readonly {%/if%}></td>
	</tr>
		<tr>
		<td>英文名</td>
		<td><input type=text name="guest_en_name" size=30 value='{%$guest_en_name%}' {% if $is_show ==1 %} readonly {%/if%}></td>
	</tr>
		<tr>
		<td>生日</td>
		<td>
			<input type=text name="guest_birthday" size=30 value='{%$guest_birthday%}' class="input_date_edit txt-normal" dataType="Require" id="guest_birthday" readonly>
				<script>
						Calendar.setup({
							inputField     :    "guest_birthday",   // id of the input field
							ifFormat       :    "%Y-%m-%d",       // format of the input field
							showsTime      :    false,
							timeFormat     :    "24"
						});
				</script>
			</td>
	</tr>
		<tr>
		<td>性别</td>
		<td>
			<select name=guest_sex>
				{%html_options selected=$guest_sex options=$sex_arr%}
			</select>	
			</td>
	</tr>
		<tr>
		<td>客户手机</td>
		<td><input type=text name="guest_mob" size=30 value='{%$guest_mob%}' {% if $is_show ==1 %} readonly {%/if%}></td>
	</tr>
		<tr>
		<td>客户电话</td>
		<td><input type=text name="guest_tel" size=30 value='{%$guest_tel%}' {% if $is_show ==1 %} readonly {%/if%}></td>
	</tr>
		<tr>
		<td>客户邮箱</td>
		<td><input type=text name="guest_mail" size=30 value='{%$guest_mail%}' {% if $is_show ==1 %} readonly {%/if%}></td>
	</tr>
		<tr>
		<td>客户QQ</td>
		<td><input type=text name="guest_qq" size=30 value='{%$guest_qq%}' {% if $is_show ==1 %} readonly {%/if%}></td>
	</tr>
		<tr>
		<td>MSN
			</td>
		<td><input type=text name="guest_msn" size=30 value='{%$guest_msn%}' {% if $is_show ==1 %} readonly {%/if%}></td>
	</tr>
		<tr>
		<td>SNS</td>
		<td><input type=text name="guest_sns" size=30 value='{%$guest_sns%}' {% if $is_show ==1 %} readonly {%/if%}></td>
	</tr>
		<tr>
		<td>是否已婚</td>
		<td>
			<select name=guest_marry>
				{%html_options selected=$guest_marry options=$is_marry%}
			</select>	
			</td>
	</tr>
	<tr>
		<td>结婚纪念日</td>
		<td>
			<input type=text name="guest_wedding" size=30 value='{%$guest_wedding%}' class="input_date_edit txt-normal" dataType="Require" id="guest_wedding" readonly>
				<script>
						Calendar.setup({
							inputField     :    "guest_wedding",   // id of the input field
							ifFormat       :    "%Y-%m-%d",       // format of the input field
							showsTime      :    false,
							timeFormat     :    "24"
						});
				</script>
			</td>
	</tr>
	<tr>
		<td>孩子的生日</td>
		<td>
			<input type=text name="children_birthdays" size=30 value='{%$children_birthdays%}' class="input_date_edit txt-normal" dataType="Require" id="children_birthdays" readonly>
				<script>
						Calendar.setup({
							inputField     :    "children_birthdays",   // id of the input field
							ifFormat       :    "%Y-%m-%d",       // format of the input field
							showsTime      :    false,
							timeFormat     :    "24"
						});
				</script>
			</td>
	</tr>
		<tr>
		<td>身份证</td>
		<td><input type=text name="guest_sfz" size=30 value='{%$guest_sfz%}' {% if $is_show ==1 %} readonly {%/if%}></td>
	</tr>
		<tr>
		<td>家庭住址</td>
		<td><input type=text name="guest_home" size=30 value='{%$guest_home%}' {% if $is_show ==1 %} readonly {%/if%}></td>
	</tr>
		<tr>
		<td>家庭电话</td>
		<td><input type=text name="guest_home_tel" size=30 value='{%$guest_home_tel%}' {% if $is_show ==1 %} readonly {%/if%}></td>
	</tr>
		<tr>
		<td>邮政编码</td>
		<td><input type=text name="guest_home_zip" size=30 value='{%$guest_home_zip%}' {% if $is_show ==1 %} readonly {%/if%}></td>
	</tr>
		<tr>
		<td>职业信息</td>
		<td>
			<textarea name="guest_work_info" id="textarea" cols="45" rows="5" {% if $is_show ==1 %} readonly {%/if%}>{%$guest_work_info%}</textarea>	
			</td>
	</tr>
		<tr>
		<td>兴趣情况</td>
		<td>
		<textarea name="guest_intree_info" id="textarea" cols="45" rows="5" {% if $is_show ==1 %} readonly {%/if%}>{%$guest_intree_info%}</textarea>	
			</td>
	</tr>
		<tr>
		<td>家庭情况</td>
		<td>
		<textarea name="guest_home_info" id="textarea" cols="45" rows="5" {% if $is_show ==1 %} readonly {%/if%}>{%$guest_home_info%}</textarea>	
			</td>
	</tr>
		<tr>
		<td>学业情况</td>
		<td>
		<textarea name="guest_studio_info" id="textarea" cols="45" rows="5" {% if $is_show ==1 %} readonly {%/if%}>{%$guest_studio_info%}</textarea>	
			</td>
	</tr>

		<tr>
		<td>备注</td>
		<td>
			<textarea name="guest_info" id="textarea" cols="45" rows="5" {% if $is_show ==1 %} readonly {%/if%}>{%$guest_info%}</textarea>	
			</td>
	</tr>
	
		<tr>
		<td>所属公司</td>
		<td>
			
			<select name=company_id>
				<option label="请选择公司" value="0">
					请选择公司
				</option>
				{%html_options selected=$company_id options=$company_arr%}
			</select>
			</td>
	</tr>
	{% if $is_show neq 1 %}
	<tr>
		<td colspan=2 align=center>
		<input type=hidden name='guest_id' id='guest_id' value='{%$guest_id%}'>		
		<input type=submit value="提交" class="btn">&nbsp;&nbsp;
		<input type=reset value="重置" class="btn">
		</td>
	</tr>
	{% /if %}
</form>
</table>

{% if $is_show ==1 %}

<div class="sub_title">用户相关人列表</div>
<table class="show_list">
<tr class="show_title">
	<td>姓名</td>
	<td>英文名</td>
	<td>性别</td>
	<td>职位</td>
	<td>公司名称</td>
	<td>更新人</td>
	<td>更新时间</td>
	<td>操作</td>
</tr>
{%foreach from=$guest_list item=arr_item%}
<tr class="{%cycle values="show_line_1,show_line_2"%}">
	<td>{%$arr_item.other_name%}</td>
	<td>{%$arr_item.ohter_en_name%}</td>
	<td>{%$sex_arr[$arr_item.other_sex]%}</td>
	<td>{%$arr_item.other_worker%}</td>
	<td>{%$arr_item.other_company%}</td>
	<td>{%get_user_info user_id=$arr_item.laster%}</td>
	<td>{%$arr_item.update_time|date_format:"%Y-%m-%d"%}</td>
	<td>
	<a href='index.php?c=info_other_user&m=edit&is_show=1&other_id={%$arr_item.other_id%}&type=2'>查看</a>&nbsp;&nbsp;
	<a href='index.php?c=info_other_user&m=edit&other_id={%$arr_item.other_id%}&admin_user_id={%$admin_user_id%}&type=2'>修改</a>&nbsp;&nbsp;
	<a href='index.php?c=info_other_user&m=del&other_id={%$arr_item.other_id%}&admin_user_id={%$admin_user_id%}&type=2' onclick="return confirm('您确认删除吗?')">删除</a>
	</td>
</tr>
{%/foreach%}
</table>
<div class="btn_div">
<input type="button" value="返回" class="btn" onclick="javascript:history.go(-1);">
</div>
{% /if %}
	